package cn.quevo.ucenter.server.dao.impl;

import org.springframework.stereotype.Repository;

import cn.quevo.beetlsql.BasicDao;
import cn.quevo.core.exception.CustomException;
import cn.quevo.ucenter.server.dao.OauthClientDao;
import cn.quevo.ucenter.server.entity.OauthClient;
import cn.quevo.ucenter.server.entity.query.OauthClientQuery;

/**
 * 授权客户端Dao接口
 * 
 * @author July july_sky@foxmail.com
 * @date 2018年3月26日 下午9:43:17
 * @Copyright ©2015-2035 湘豫(北京)科技有限公司. All Rights Reserved.
 * @version 1.0
 */
@Repository("oauthClientDao")
public class OauthClientDaoImpl extends BasicDao<OauthClient, OauthClientQuery> implements OauthClientDao {

    private final static String SQL_PRE = "ucenter.server.oauthClient.";
    @Override
    public OauthClient getSinge(OauthClientQuery query) throws CustomException {
        return super.getSinge(query,OauthClient.class);
    }
    
    @Override
    public String getSqlPre() {
        return SQL_PRE;
    }

}
